#include "FinalContent.h"
#include <MultiWidgets\TextWidget.hpp>

FinalContent::FinalContent(){}

void FinalContent::init(){

	auto b1 = MultiWidgets::create<MultiWidgets::TextWidget>("4");
	b1->setInputFlags(INPUT_SINGLE_TAPS);
    b1->eventAddListener("single-tap", "nextContent", this);
	addChild(b1);
}
	
void FinalContent::eventProcess(const QByteArray & messageId, Radiant::BinaryData & data){
	
	if(messageId == "nextContent") nextContent();
}

void FinalContent::nextContent(){

	Radiant::BinaryData data;
	//data.write(temp);
	eventSend("nextContent",data);

}